VertexShaderGen: Fix a dumb regression from revision f524312fd17e.
VertexShaderGen: Fix a potential bug where vertex shader uids don't change when
pixel lighting is toggled.

Same as revision f524312fd17e but done properly (why is our shader gen code this dumb?).
Add hotkeys for save/load state to/from file.