title: CouchDB View Returns empty rows with Complex Key for Date array comparison
body: <p>I've got a view called "report_data_by_date" which essentially is this:</p>
  
  <pre><code>function(doc)
  {
    if (doc.report_completed_timestamp)
    {
      emit(doc.report_completed_timestamp, doc);
    }
  }
  </code></pre>
  
  <p>which emits something like this:</p>
  
  <pre><code>{
          "id": "eade1035fb3dc87baba8bdf64b043c2c",
          "key": [
              2011,
              11,
              9,
              14,
              1,
              26,
              305
          ],
          "value": { /*the doc*/}
  }
  </code></pre>
  
  <p>And when I query the view, like this:</p>
  
  <pre><code>http://.../_design/ReportMetaData/_view/report_data_by_date
  </code></pre>
  
  <p>I get back the expected results.</p>
  
  <p>However, when I try to query with a key (to match only certain dates), like this (but properly URL encoded):</p>
  
  <pre><code>http://.../_design/ReportMetaData/_view/report_data_by_date?key=[2011,{},{},{},{},{},{}]
  </code></pre>
  
  <p>I get back something like this:</p>
  
  <pre><code>{"total_rows":16,"offset":16,"rows":[]}
  </code></pre>
  
  <p>Where rows is an empty array. I expect to get back the rows which have a year of 2011.</p>
  
  <p>I feel like I'm missing something very trivial, but despite my searching I can't find an answer.</p>
  
  <p>Thanks for your help!</p>