Makes sure that a new object is initialized with new instances of Metric.
Merge branch 'release/2.1'