Reduced space usage by array trie by using local bounds
Changed arraytrie to be a parametric map - also prunes
ATrieMap can now be constructed directly.
Refactored away maptrie. Might be reimplemented as an mutable trie