Remove multidispatch from undef equality tests.