improve root object deserialization checks