Implemented #664 for select-wide maxOption
Implemented #664 for option groups. Closes #664