BUG: Fix Grouper with multi-level index and frequency (GH7885)

close #7885