Replace ~[T] by Vec<T>

I'd rather do this before it turns out that a rust upgrade removed `~[T]` behind our back.