Add basic trie printing for debugging