modification on set method for radio and checkboxes (set checked according to value attribute)