Fixed a bug where DataContractSerializer was sometimes not showing its contents.