Fill in the rest of WebGL 2 query spec and fix small errors

For Issue #544.
Merge pull request #659 from NVIDIA/query-spec

Fill in the rest of WebGL 2 query spec and fix small errors
Test that setting line width to NaN is not an error

This exposes an NVIDIA driver bug, where INVALID_VALUE is incorrectly
generated. glLineWidth should only produce an error when width <= 0,
which is false for width NaN.

Rendering with width NaN is undefined, so alternatively the spec could be
changed to disallow setting it, but this is unlikely to become a major
issue.
Merge pull request #660 from NVIDIA/line-width-nan

Test that setting line width to NaN is not an error