Finished TypedOrderedDict implementation.

The storage format has to be tweaked.

But the class can now be used for all purposes other than storage.