BUG: Bug in multi-index slicing with various edge cases (GH8132)

closes #8132