gl2: move common GL state to internal/glutil
internal/restrict.json: add the GL_CURRENT_PROGRAM symbol.
internal/gl: regenerate using glow.
internal/gles2: regenerate using glow.
gl2: retain shader program state when guarding graphics state.