Trie key sequence

This branch completely changes the key-sequence matching algorithm from a LL-ish hash-of-hash traversal to actual sequence of keys.