This series fixes a truckload of issues with the existing implementation of both variable locations and transform feedback. When applied in full, it provides a 100% pass rate on KHR-GL46.enhanced_layouts tests (on ANV) as well as fixing some other misc piglit tests.