Implemented string_ref_c in terms of range_c.
Implemented ref_count_c.
Implemented scope guard.