[vector-api] Create 'type' annotation for 'const' variables

See #1491