added asserts to Grid2 index functions