Fix equality testing

If m and n had matching primals xor residuals, m/=n == False but m==n == False. This fixes that.