support metamodel references to anonymous classes for #712