GROOVY-6258: groovydoc information loss when using generics (better handling of type arguments and type parameters)