Move name attribute to attributes method
Support for arrays of checkboxes