title: search with startkey, endkey and array keys
body: <p>I have a view wich returns several elements with array keys.<br>
  Example :</p>
  
  <pre><code>{"total_rows":4,"offset":0,"rows":[
      {"id":"","key":[15,"2"],"value":1,"doc":{},
      {"id":"","key":[20,"2"],"value":1,"doc":{},
      {"id":"","key":[20,"3"],"value":1,"doc":{},
      {"id":"","key":[20,"4"],"value":1,"doc":{}
  ]}
  </code></pre>
  
  <p>I'm trying to search through those elements. So if I do the following request :</p>
  
  <pre><code>/database/_design/element/_view/all/?
    startkey=[15, "2"]&amp;
    endkey=[20, "3"]&amp;
    include_docs=true&amp;reduce=false
  </code></pre>
  
  <p>Live example : <a href="http://jchris.couchone.com/keyhuh/_design/Record/_view/by_CreationDate_and_BoreholeName?startkey=[1267686720,%22sp4%22]&amp;endkey=[1267686725,%22sp4" rel="nofollow noreferrer">http://jchris.couchone.com/keyhuh/_design/Record/_view/by_CreationDate_and_BoreholeName?startkey=[1267686720,%22sp4%22]&amp;endkey=[1267686725,%22sp4</a>\u9999%22]&amp;include_docs=true&amp;reduce=false</p>
  
  <p>This one doesn't works. It returns me all the records, even the last one, which doesn't meets the second element of the array.</p>
  
  <p>Strangely enough, it works with strings only.<br>
  Example :</p>
  
  <pre><code>{"total_rows":4,"offset":0,"rows":[
      {"id":"","key":["15","2"],"value":1,"doc":{},
      {"id":"","key":["20","2"],"value":1,"doc":{},
      {"id":"","key":["20","3"],"value":1,"doc":{},
      {"id":"","key":["20","4"],"value":1,"doc":{}
  ]}
  </code></pre>
  
  <p>if I do the following request :</p>
  
  <pre><code>/database/_design/element/_view/all/?
    startkey=["15", "2"]&amp;
    endkey=["20", "3"]&amp;
    include_docs=true&amp;
    reduce=false
  </code></pre>
  
  <p>Live Example : <a href="http://jchris.couchone.com/keyhuh/_design/Record/_view/by_Client_and_BoreholeName?startkey=[%22Test1%22,%22sp4%22]&amp;endkey=[%22Test1%22,%22sp4" rel="nofollow noreferrer">http://jchris.couchone.com/keyhuh/_design/Record/_view/by_Client_and_BoreholeName?startkey=[%22Test1%22,%22sp4%22]&amp;endkey=[%22Test1%22,%22sp4</a>\u9999%22]&amp;include_docs=true&amp;reduce=false</p>
  
  <p>Here it'll work well and only return the three first elements.</p>
  
  <p>Am I missing something with couchdb's search for arrays with integers and strings ? Or have I fallen on a bug ?</p>
  
  <p>Note : it does the same with CouchDB 0.10 and 0.11.</p>