Compatibility with new \GMP objects (5.6.0+).