Update WebGL debug

Made glFunctionArgsToString handle optional arguments so for example
it can print texImage2D with 6 arguments vs with 9 with the correct
arguments as enums