Add functionality to set properties in nested objects with dot notation.
For properties that have type "object", an instance of the class is used as default value. But only values that are explicitly set will be added in the payload. Therefore if one sets the value of the objects properties, it will set that property but the default class is never set, causing it to be removed from the payload.
It would be more intuitive to be able to set both class and a property like this. rec.class.prop←value.