Added support for NullValueHandling settings when serializing dynamic objects.