xsd2code creates extra nested collection when serializing lists
<p>I've been using xsd2code v3.4.
So far I'm pretty close to getting it to work, however I'm facing one glaring issue and I can't seem to find any solutions.  When my XML gets generated after I serialize my object, it's adding an additional complex type that is named exactly like the class.  This is what I currently get.  Notice how it's adding an unnecessary collection right after an order line:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;CORE_PO_INBOUND_V2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;INTEGRATION_MESSAGE_CONTROL&gt;
    &lt;ACTION&gt;FULL_UPDATE&lt;/ACTION&gt;
    &lt;COMPANY_CODE&gt;COMPANY&lt;/COMPANY_CODE&gt;
    &lt;ORG_CODE&gt;COMPANY&lt;/ORG_CODE&gt;
    &lt;MESSAGE_TYPE&gt;INBOUND_ENTITY_INTEGRATION&lt;/MESSAGE_TYPE&gt;
    &lt;USERID&gt;COMPANY&lt;/USERID&gt;
    &lt;RECEIVER&gt;TA15&lt;/RECEIVER&gt;
    &lt;SENDER&gt;COMPANY&lt;/SENDER&gt;
    &lt;BATCH_ID&gt;1234&lt;/BATCH_ID&gt;
    &lt;BUS_KEY&gt;
      &lt;ORG_CODE&gt;COMPANY&lt;/ORG_CODE&gt;
      &lt;PO_NUMBER&gt;1234&lt;/PO_NUMBER&gt;
    &lt;/BUS_KEY&gt;
  &lt;/INTEGRATION_MESSAGE_CONTROL&gt;
  &lt;PURCHASE_ORDER_HEADER&gt;
    &lt;CTRY_OF_EXPORT&gt;TR&lt;/CTRY_OF_EXPORT&gt;
    &lt;CTRY_OF_IMPORT&gt;US&lt;/CTRY_OF_IMPORT&gt;
    &lt;CURRENCY_CODE&gt;USD&lt;/CURRENCY_CODE&gt;
    &lt;INCOTERM_CODE&gt;011&lt;/INCOTERM_CODE&gt;
    &lt;ORG_CODE&gt;COMPANY&lt;/ORG_CODE&gt;
    &lt;SOURCE_TX_ID&gt;THING&lt;/SOURCE_TX_ID&gt;
    &lt;PO_NUMBER&gt;1234&lt;/PO_NUMBER&gt;
    &lt;PURCHASE_ORDER_LINE&gt;
      &lt;CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADERPURCHASE_ORDER_LINE&gt;
        &lt;BUSINESS_UNIT&gt;BCA&lt;/BUSINESS_UNIT&gt;
        &lt;COMMERCIAL_UOM&gt;EA&lt;/COMMERCIAL_UOM&gt;
        &lt;CTRY_OF_IMPORT&gt;US&lt;/CTRY_OF_IMPORT&gt;
        &lt;CURRENCY_CODE&gt;USD&lt;/CURRENCY_CODE&gt;
        &lt;DEPARTMENT&gt;602&lt;/DEPARTMENT&gt;
        &lt;LINE_ID&gt;1&lt;/LINE_ID&gt;
      &lt;/CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADERPURCHASE_ORDER_LINE&gt;
    &lt;/PURCHASE_ORDER_LINE&gt;
    &lt;PURCHASE_ORDER_HEADER_PARTNER&gt;
      &lt;CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADERPURCHASE_ORDER_HEADER_PARTNER&gt;
        &lt;REF_RESOLUTION_PARTNER&gt;Stuff&lt;/REF_RESOLUTION_PARTNER&gt;
      &lt;/CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADERPURCHASE_ORDER_HEADER_PARTNER&gt;
    &lt;/PURCHASE_ORDER_HEADER_PARTNER&gt;
  &lt;/PURCHASE_ORDER_HEADER&gt;
&lt;/CORE_PO_INBOUND_V2&gt;
</code></pre>

<p>This is what I actually want:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;CORE_PO_INBOUND_V2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;INTEGRATION_MESSAGE_CONTROL&gt;
    &lt;ACTION&gt;FULL_UPDATE&lt;/ACTION&gt;
    &lt;COMPANY_CODE&gt;COMPANY&lt;/COMPANY_CODE&gt;
    &lt;ORG_CODE&gt;COMPANY&lt;/ORG_CODE&gt;
    &lt;MESSAGE_TYPE&gt;INBOUND_ENTITY_INTEGRATION&lt;/MESSAGE_TYPE&gt;
    &lt;USERID&gt;COMPANY&lt;/USERID&gt;
    &lt;RECEIVER&gt;TA15&lt;/RECEIVER&gt;
    &lt;SENDER&gt;COMPANY&lt;/SENDER&gt;
    &lt;BATCH_ID&gt;1234&lt;/BATCH_ID&gt;
    &lt;BUS_KEY&gt;
      &lt;ORG_CODE&gt;COMPANY&lt;/ORG_CODE&gt;
      &lt;PO_NUMBER&gt;1234&lt;/PO_NUMBER&gt;
    &lt;/BUS_KEY&gt;
  &lt;/INTEGRATION_MESSAGE_CONTROL&gt;
  &lt;PURCHASE_ORDER_HEADER&gt;
    &lt;CTRY_OF_EXPORT&gt;TR&lt;/CTRY_OF_EXPORT&gt;
    &lt;CTRY_OF_IMPORT&gt;US&lt;/CTRY_OF_IMPORT&gt;
    &lt;CURRENCY_CODE&gt;USD&lt;/CURRENCY_CODE&gt;
    &lt;INCOTERM_CODE&gt;011&lt;/INCOTERM_CODE&gt;
    &lt;ORG_CODE&gt;COMPANY&lt;/ORG_CODE&gt;
    &lt;SOURCE_TX_ID&gt;THING&lt;/SOURCE_TX_ID&gt;
    &lt;PO_NUMBER&gt;1234&lt;/PO_NUMBER&gt;
    &lt;PURCHASE_ORDER_LINE&gt;
        &lt;BUSINESS_UNIT&gt;BCA&lt;/BUSINESS_UNIT&gt;
        &lt;COMMERCIAL_UOM&gt;EA&lt;/COMMERCIAL_UOM&gt;
        &lt;CTRY_OF_IMPORT&gt;US&lt;/CTRY_OF_IMPORT&gt;
        &lt;CURRENCY_CODE&gt;USD&lt;/CURRENCY_CODE&gt;
        &lt;DEPARTMENT&gt;602&lt;/DEPARTMENT&gt;
        &lt;LINE_ID&gt;1&lt;/LINE_ID&gt;
    &lt;/PURCHASE_ORDER_LINE&gt;
    &lt;PURCHASE_ORDER_HEADER_PARTNER&gt;
        &lt;REF_RESOLUTION_PARTNER&gt;Stuff&lt;/REF_RESOLUTION_PARTNER&gt;
    &lt;/PURCHASE_ORDER_HEADER_PARTNER&gt;
  &lt;/PURCHASE_ORDER_HEADER&gt;
&lt;/CORE_PO_INBOUND_V2&gt;
</code></pre>

<p>Is there some setting I'm using incorrectly?  I have it set to work with List collections.  Seems as if this problem only exists for collections of a class that's generated from this tool.</p>

<p>Edit: Adding some snippets of the designer class that gets generated by xsd2code.  Note that this file is pretty large (almost 10k lines...), so I'm not going to post the whole thing here, but rather the chunks that pertain to the purchase order line collections of elements:</p>

<pre><code>public partial class CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADER : EntityBase&lt;CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADER&gt;
    {
private List&lt;CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADERPURCHASE_ORDER_LINE&gt; pURCHASE_ORDER_LINEField;

public List&lt;CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADERPURCHASE_ORDER_LINE&gt; PURCHASE_ORDER_LINE
        {
            get
            {
                if ((this.pURCHASE_ORDER_LINEField == null))
                {
                    this.pURCHASE_ORDER_LINEField = new List&lt;CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADERPURCHASE_ORDER_LINE&gt;();
                }
                return this.pURCHASE_ORDER_LINEField;
            }
            set
            {
                this.pURCHASE_ORDER_LINEField = value;
            }
        }
}
public partial class CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADERPURCHASE_ORDER_LINE : EntityBase&lt;CORE_PO_INBOUND_V2PURCHASE_ORDER_HEADERPURCHASE_ORDER_LINE&gt;
    {

        private System.Nullable&lt;decimal&gt; aREAField;

        private bool aREAFieldSpecified;

        private string aREA_UOMField;
...
}
</code></pre>