Raise error in certain unimplemented aggregation cases.
Merge pull request #8592 from staple/reduce

ENH: Raise error in certain unhandled _reduce cases.