Generics in OptionsBases.classes()