Fix problem in merging variable data into MeasurementVariables