Fixed another bug and made some speedups in fmpz_xgcd.