Match the structure of GHC's TrieMap