Engine: fixed Overlay serialization

Courtesy Ivan Mogilko

(It caused saved games to fail to load if there was background dialog
on screen when they were saved)