Fix uniform and varying packing tests

The tests had one error where they were not computing the maximum number of individual variables (as oppose to arrays) and so the shaders were compiling where the test expected them to fail

Now that it computes the correct maximum the tests correctly create a shader with more than the max variables allowed.