shift to using Index rank, rather than Shape rank Int, in a number of locations in Layout.Base and Layout.Builder