Make submesh() support 1D