[rt] Remove allocate_vector.
[rt] Use primitive_alloc_rf in primitive_raw_as_string.