Adds to a test case verifying glGetIntegerv returns
correct results when the current texture id is not TEXTURE0 and fixes
library_gl.js so that it returns correct results.
Merge pull request #1752 from michaeljbishop/glgetintegerv-fix

Adds to a test case verifying return values from glGetIntegerv