Merge pull request #1626 from KhronosGroup/extension-support

Infrastructure: Generalize and broaden per-variable extension checking.