GROOVY-6533: Access to clazz.property or clazz.method() doesn't behave the same if class is Class or Class<?>
Fixed failing test after GROOVY-6533 backport