Basic type scale mixins and class generator.