Some missing uniform matrix support

Added support for using matrices as uniform parameters for shaders. It was almost all there, just this one missing piece of the puzzle.