Adds flags in  GLProgram to prevent sending uneeded uniforms

This is a performance fix.