Correct Pow.as_real_imag() for im=0 (see issue 3474)

This was fixed before for issue 3162, see PR #1161