Fixed assorted EGA and 5170 save/restore/reset problems