Fix matrix indexes check in presence of logical expressions

Ensure that an "unsafe" matrix access is done only when the
corresponding CheckIndex node is actually taken into account.
If a logical expression is encountered the CheckIndex nodes are
rejected and all the corresponding matrix accesses are made using
the safe function call "m:get(i,j)".
Add tests in the language suite for matrix indexing