Fix typing of == and !=