glsl: fix counting of vertex shader output slots used by explicit vars