libcollection: generalize StrVector to AsSlice.

A single impl supports all of [T], Vec<T> and CVec<T>.

Once Iterable is implemented, we will prefer it to AsSlice. The
with_capacity() part will be tricky, though.

Signed-off-by: NODA, Kai <nodakai@gmail.com>