Backport r4638 - - write rom header to savestate;