Correctly typecheck all subelements of vector literals.

Closes PR 14184.