Add basic mypy type checking for vec types (#20669)
Check that item type is valid, and infer `i64` as the type of
`len(<vec>)`. `vec` types only support specific simple item types that
are quick to type check at runtime.
Related issue: https://github.com/mypyc/mypyc/issues/840