Tighter uniform packing

As a small step towards GLES, I packed shader uniforms a bit tighter. Everything still doesn't fit in 128/16 registers, however.