fixed bug with ineherited classes with traits on Range/DiscreteRange traits (extracor of base traits) - which we must apply later to mapping etc