Fix __eq__ on data_class for other types