Vec: add uninitialized(uint) and resize(&mut self, uint, T).

Add two more convenience methods to `Vec`.

Please review my English in the rustdoc comments!
I'm not sure if this is a good pattern to encourage. It usually makes more sense to call `set_len` after the operation writing out data succeeds, since the vector may have elements with destructors.