generic trie with persistency - fixes; all relevant tests passed.