Autogenerate unique class types

Discussion -> https://github.com/cargomedia/CM/pull/876