title: MyMessage<T> throws an exception when calling XmlSerializer
body: <p>I am very new to nservicebus. I am using version 3.0.1, the last one up to date. And I wonder if my case is a normal limitation of NSB, I am not aware of.</p>
  
  <p>I have an asp.net MVC application, I am trying to setup and in my global.asax, I have the following :</p>
  
  <pre class="lang-cs prettyprint-override"><code>var configure = Configure.WithWeb()
                  .DefaultBuilder()  
                  .ForMvc()
                  .XmlSerializer();
  </code></pre>
  
  <p>But I have an error with the XmlSerializer when dealing with one of my object:</p>
  
  <pre class="lang-cs prettyprint-override"><code>[Serializable]
  public class MyMessage&lt;T&gt; : IMessage 
  {
          public T myobject { get; set; }
  }
  </code></pre>
  
  <p>I pass trough :</p>
  
  <pre class="lang-cs prettyprint-override"><code>XmlSerializer() 
  instance.Initialize(types);
  this.InitType(type, moduleBuilder);
  this.InitType(info2.PropertyType, moduleBuilder);
  </code></pre>
  
  <p>and then when dealing With T, </p>
  
  <pre class="lang-cs prettyprint-override"><code>string typeName = GetTypeName(t);
  </code></pre>
  
  <p>typename is null and the following instruction :</p>
  
  <pre class="lang-cs prettyprint-override"><code>if (!nameToType.ContainsKey(typeName))
  </code></pre>
  
  <p>ends in error. null value not allowed.</p>
  
  <p>Is this some limitations to Nservicebus, or am I messing something up?</p>