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.
Actually this needs changing if you're not building with NUMBER_IS_SINGLE. I'll chance it later.