Fix saving/loading state in BSNESGameCore.