Make Program::Uniforms more efficient for matrices.