General improvements to Trie code

Nothing major here. Updates to follow the Dict interface more closely (not providing a default to `get`, `getindex`) and some code clean up. Also some tests to cover other functions provided.