7594: power rules correction so (x**y)**z != x**(y*z)

fixes #7594
while exp_polar.is_polar is True, the attribute was not defined for exp (and this lead to a workaround that I removed below once I added the attribute here).