Fixed bigint_to_bool, implemented _bigint_to_double