Improve checking equality of complex numbers in non-exact mode, and fix some cmath implementations