Correct client side form behavior for radio boxes and checkboxes.

Radio boxes now give only the selected value to form.
Check boxes now give only the selected value, or a single array of the
 selected values.