Trie & serialisation format folded into main definition.