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

fixes #7594
use the consolidated decision making about whether the joining of exponents is valid