Implement resize for Vec

This PR adds `resize()` to `Vec` in accordance with RFC 509.
The full expression is `self.extend(repeat(value).take(new_len - len))`