utils: added a title printing utilities for tests.
trie: fixed various encode/decode issues.