Fixed an issue with deserializing illegal maps and sets.