[mypyc] Add buffer protocol support for vec (#21359)
Now `vec` with value item types can be used as 1-dimensional buffers.
This allows
other code access raw memory in the vec buffer.
Currently only read-only buffer access is supported.
I relied on coding agent assist quite a bit.