Add isReal() method for complex numbers