Finally converted whole TrieMap (inclusive sub-classes) to templates. Still work in progress.