Replaced many old-style ~[T] with Vec<T>