Introduce serializeProperties()