Bug-fix in XmlFormatterFactory.
ReSharper code cleanup for the whole solution.