Fixed issues with selectAll/None for all option types

selectAll()/selectNone() methods only worked for ARRAY_OF_LABELS. Fixed so that it
works for all 4 types of option definitions. (Maybe some refactoring is needed as the method parameter name 'option' seems to sometimes represent a label or a value.)