Fix bug causing duplicate fields in form object (GH #24).