GROOVY-5859: Invalid generics are generated in stubs in super constructor calls