Make do_eq raise type errors