BUG: regression in groupby with a pass thru multiindex on axis=1 (GH7997)

closes #7997