Fix error in generator file introduced when merging luajit-lang-toolkit

Commit 7112a696 of luajit-lang-toolkit create a new "genid" module.
When merging with gsl-shell/lang the CheckIndex rule was not adjusted.
Add an additional test for matrix indexing