Correct Pow.as_base_exp for base == 1

fixes #8344
Merge pull request #8345 from skirpichev/8344-fix

Correct Pow.as_base_exp for base == 1