fixed issue where object properties where ignored by serialize
Merge pull request #113 from aschmid/master

fixed issue where object properties where ignored by serialize