Add test for mismatching integer precision

This ensures that ints have correct default precision in fragment shaders
and that mismatches will be detected just as with floats.