Correct Pow.as_base_exp for base == 1

fixes #8344 

will merge in 24hrs