add logging to XmlSerializer for withheld
corrected order of stack trace in logging