Fix algebraic power::has() for larger integer exponents.