Allow scalar and array Quantity objects to be converted to Numpy arrays

At the moment, if ``q`` is a quantity, then ``float(q)`` works, but there is no equivalent for arrays. This PR adds the ability to do ``np.array(q)`` and therefore also allows quantities to be used in plotting.