trie: implemented the remaining write ops.
utils: tweaks.