CLN: remove Panel-specific parts of core.generic
xref #25632

removed small amount of code related to self.ndim > 2

also a few changes to make the NotImplemented errors for self.ndim>2 more consistent and added test for these. (might be worth having a decorator for these)