Add a write method to HPSFPropertiesOnlyDocument, and use this to finish the unit tests for bug #54233