GROOVY-6478: ensure placeholder generation is using a correct representation when connecting generics