Added support for the serialization of anonymous types.