Don't rewrite (x^a)^b, unless b is Integer

The formula (x^a)^b = x^(a*b) only holds if b is an integer.

Fixes #233.