Ensure all types have equals/hashCode/toString.

@swankjesse @danrice-square