GROOVY-6121: Object[].groupBy is not defined