Better support for matrices as uniforms.

Export the AsUniform class, not just its method.