generalized optional dimensions to sequence of dimensions to allow double-indexing on LHS of assignment