ENH: Quantiles accepts an array

Doesn't quite finish #4196, but it should be easy not that `quantile` takes arrays.

I did this on top of #6953, so that should go in first.