GROOVY-5386: @Delegate - sometimes compilation fails for generic types (one interface wasn't being corrected)