Implemented iterator for TrieMap

Closes #5506.