Improved form serialization.