bugfix: return regular numpy array or Quantity from statistical fns.