[FIX] Send correct value for checkboxes

Also, fixed an issue that prevented forms from being set back to pristine after successful update.