Improvements to gmpy and gmpy2 fixes.