core: move index, shape, slice into repa-core