Allow specifying a custom tuple class to CompoundMeasure.

This allows for named tuples to be produced as values, thus simplifying constituent value access.