Support for constructing a matrix from vectors, and to index vectors in a matrix.