Properly handle equality of Link objects with other objects