support Dict/MapFields

This adds support for serializing/deserializing DictField and MapField (a subclass of DictField).