GROOVY-5859: Invalid generics are generated in stubs in super constructo...

...r calls

I would appreciate feedback on this workaround for GROOVY-5859.