title: apache thrift fails generating recursive structs
body: <p>I wanted to represent a standard tree structure in apache thrift, but I encountered
  following problem:</p>
  
  <pre><code>[ERROR:/path_to_project/thrift/service.thrift:31] (last token was 'TCategoryTree')
  Type "TCategoryTree" has not been defined.
  </code></pre>
  
  <p>These are my thrift structures:</p>
  
  <pre><code>struct TCategory {
      1: required string name
  }
  
  struct TCategoryTree {
      1: required TCategory element,
      2: optional list&lt;TCategoryTree&gt; children
  }
  </code></pre>
  
  <p>Line 31 is <code>2: optional list&lt;TCategoryTree&gt; children</code>, where I define a field
  that has the same type I'm defining right now.</p>
  
  <p>Could it be that apache thrift doesn't support recursive structures or am I making
  some kind of mistake here?</p>
  
  <p>edit: I'm using version 0.9.0</p>