Fix file save/load issue

Wasn't writing the number of lights when saving.
So when loading, it all got fucked up at the lights.