Turn vectors and lists of vectors into indexed structures
