Don't alter the object passed to ByPropertyListSerializer::getSerialized

Similar to: Ia5e9e7d7

Change-Id: I8124225a03c9fbb977e81bb870390a533236ebca