Uniform not set, despite valid location
It seems that nothing was wrong with the code I posted.
I deleted my complete build and rebuild it, and now it seems to work.
I don't see anything on screen but i think that error is unrelated.

I can see the matrix in the nsight debugger.