BUG: fix groupby with tuple bug

Closes https://github.com/pydata/pandas/issues/8121