Slightly better equality tests (I know I've missed a few).