Index should return elements as Quantity, not Index
This PR patches Index.__getitem__
to return scalar items as a Quantity
, rather than a 0-dimensional Index
, mainly because that doesn't really make sense.
A test case for the Index
object has also been added.