Correct Pow.as_base_exp for base == 1

fixes #8344 

will merge in 24hrs
would `if b.is_Rational and not b.is_Integer and b.p == 1` be more transparent?