Add assertion.

Add assertion that game state should only ever be serialised when
written to disk.