Added support for optgroup classes inheritance
Made the group classes support look more like the option classes support
Merge pull request #2106 from liorch88/optgroup-class-support

Added support for optgroup classes inheritance