Added ability to serialize and deserialize maps.