fixed serialization issues for objects with properties;