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