[WIP] Add functions to Quantity to compute the max, min, standard deviation and average of a Quantity, returning a Quantity.

The standard deviation is the square root of the variance, not the "sample standard deviation".  It should be the same thing that `numpy.std` would return on a sequence.

This should address #642.