Added ResizeArray.toVector and ResizeArray.ofVector.