XmlMessageSerializer uses DelegateFactory cache

Made XmlMessageSerializer rely on delegate cache in DelegateFactory.

I put this in a separate commit as to isolate the change in
XmlMessageSerializer (and any regression that might come out of that).