fix equals check by comparing the same types (Work vs OrcidWork)