Add missing info from equals and hashCode implementations.

@swankjesse @danrice-square