add extension for other types exported by GMP (arbitrary floats etc.)

would be nice to use all we can from gmp, since we depend on it anyway