Fix serialization of maps with null values

Serializing an object with a dynamic map containing a null value would throw a "Serialization of null is not supported" exception.
Should check that this map gets into the deserialized object. It doesn't, so the test would fail.That's ok, at least we know there is something wrong.