Adds to a test case verifying return values from glGetIntegerv

The pull tests correct results when the current texture id is not TEXTURE0 and fixes
library_gl.js so that it returns correct results.