Add preselect for multiple choice checkboxes

When a value is an array of multiple choice checkboxes then preselecting was not happening. This checks first to see if the data passed is an array then passes it as array to setValue instead of fieldname and iterates over it setting selected tag thus preselecting the correct checkboxes.