Correctly set matrix uniform arrays.