Error message improvements
Allow disabling format preservation in XDT

Seems a bug in XDT may sometimes throw internal errors when transforming with format preservation enabled. This lets you transform those files.