collections: replace all ~[T] with Vec<T>.

collections: replace all ~[T] with Vec<T>.