Fix datashape equality relation.