Fix bugs in Ln and add Pow overloads

Also more cleanup, and enhance DivideToExponent