power uses mpz_powm if possible