ENH groupby: more user-friendly error message (GH7511)
better error message for groupy on duplicated columns name. (Followup for branch GH8210 (Bug GH7511)). E.g.

```
ValueError: Grouper for 'A' not 1-dimensional
ValueError: Grouper for '<class '__main__.gr'>' not 1-dimensional
```
