Merge "Fix a bug in DurationMetric's dimensions from condition and make unit tests expect the right answer."