Add oneof for Vector

Note: I used `x.tail.length` instead of `x.length - 1` since `oneAndLength` is apparently deprecated.