fixed #10 calling toPlainObject() for initial __attributes object
Merge pull request #11 from Antontelesh/10_assigned_properties

fixed #10 calling toPlainObject() for initial __attributes object