Bugfix so that resetting a checkbox removes 'checked' rather than 'value'