BUG: Bug in using a pd.Grouper(key=...) with no level/axis or level only (GH8795, GH8866)

closes #8795
closes #8866