glsl: Add some code to compare/verifiy array dimensions