More tests for GL backends.

This should test all functions except glCompressedTexImage2D
and glCompressedTexSubImage2D
Some fixes to util/_testing.py
Fixes to GL backends.

Found by tests :)
Merge branch 'gl-gloo-merge2' of https://github.com/vispy/vispy into gl-gloo-merge2