Use Vec instead of ~[T] where applicable