change exponent type in fmpz_factor from fmpz to ulong