Fixed the validation of the element in selectOption

Checkboxes are not allowed in this method.
Closes #135
Merge pull request #149 from stof/fix_type_check

Fixed the validation of the element in selectOption