GROOVY-6981: fix wildcard bound usage