persistent trie - minor fixes