Added optgroup support for Select elements