added fix for __eq__ when checking against other types