Ensure all types have equals/hashCode/toString.