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.
Merge pull request #11 from lassedamgaard/master

Fix serialization of maps with null values