Implement resize for Vec

This commit adds `resize` to `Vec` in accordance with RFC 509.