add isclass check to ComplexModelMeta