Expose serializeForm as a part of public API.