Add vector-length primitive.