Added missing equals and hashCode methods to Record