Revert "ENH: Removed 1d shortcut in _spatial_median again"

This reverts commit 657c86f618de327352d0fe3a5f17f9485e77460a.