Equals and hashCode implementations for the primitive collections