improved support to checkboxes and radios. added css class json-form-array to force array representation of inputs