Implement resize for Vec

This PR adds `resize()` to `Vec` in accordance with RFC 509.
Since this is about to be deprecated, this should be changed to an `extend` using `repeat`.