improvements to trie, memdebug, and do-it