Added example of a model subclass with a constructor
Fixed bug with null serialization