converts submitted arrays (checkboxes) to a comma seperated list
test for array in params and tidy up stupid params