Remove mpz_t* casts and add osl_int_size_in_base_2 function

- Remove mpz_t* casts
- Add osl_int_size_in_base_2 function