Apparently, gshift cannot work with subsetting since it always creates vectors of `length(x)` but not length `irows`. _Originally posted by @ben-schwen in https://github.com/Rdatatable/data.table/issues/5950#issuecomment-1962542515_