Fix DoArithmeticD to prevent clobbering of right if it happens to be same as result