For a general grid, such loops are only possible for codimensions 0 and the grid dimension. [[Imported from SVN: r9766]]