Add vector type checking.