Fix a case where the generated deserialization used the wrong class identifier
founded and corrected with Carlos Catania @harpomas