Type and numel of uniforms is queried from shader
so that the right function is called and better checks are performed.