Fix issue with vertex shader IDs. Write the 4th component of packed vectors.
The latter makes sure we leave no holes in the CPU writebuffer.
Clearing FBOs on bind was a bit too aggressive an optimization.