CRM-14822 fix api handling of checkbox fields so it supports api-consistent input along with previous form-oriented format