Additional safety checks in XmlSerializer.Warmup