Move special cases for pow and log into the Complex class.
Simplify logarithm-to-the-base.