improved Formation.js and BaseModel.php for checkbox fields