Fixed bug in Model::unserialize.