Improved hash equality for measurements.