Making resize work in the WebGL backend.
Simplified attribute/uniform type lookup, and fixed uniform matrix support.