bignum mini-gmp: Implement rest functions
core: Use GC_MALLOC_ATOMIC to store bignum strings

mpz_get_str and mpq_get_str would allocate new memory with GMP memory
allocate function. It causes memory leak..

Explicitly allocate buffer with GC_MALLOC_ATOMIC and feed it instead.