digit_trie trie codec interface refactoring for consistency with data codec