Lang: Simplify equals and hashCode.