glsl: fix uniform location count used for glsl types