The search structures created by triebeard are full of external pointers which point to the deep, dark void when bad things happen to R sessions. When the package reloads everything should return to normal, but you can use this function to rebuild the in-memory search structures at any time.

rebuild_search_tries()