Support string allocators in string_ref.

Make the conversion operator deduce the allocator.