Implemented iterator for TrieMap

Closes #5506.
Remove debug printing.
auto merge of #8293 : dim-an/rust/trie-iterator, r=thestinger

Closes #5506.