override equals() and hashCode() for Metric just in case (compare by name)