collections
This commit also deprecates the `as_string` and `as_slice` free functions in the `string` and `vec` modules.