Replaced mpz_t with element_t for integers (the PBC library has optimized methods for modular integer fields)