modelbuilder: mclass2nclassdef registers the first occurrence of a class