Adds Metric#repair() to reconstruct cumulativeAmount values from amount values.