change Measure parameter to vector rather than scalar type

This lets us properly express vector-space-generic V and Transformable
instances for Measure.