support for Map with basic key type
+ revert use of JsArray to deserialize array (not working in prod mode without cast disabled)
+ added serialization options  writeDatesAsTimestamps and writeDateKeysAsTimestamps