core: Optimise oo.compare when a and b are equal by reference