title: How to pass array parameter to AngularJS $resource
body: <p>When I pass an array to a resource action.. it doesn't convert the array parameter to an array of URL parameters</p>
  
  <pre><code>var Product = $resource('path/products');
  Product.query({ids: [1,2,3]})
  </code></pre>
  
  <p>Instead of getting:</p>
  
  <pre><code>path/products?ids[]=1&amp;ids[]=2ids[]=3
  </code></pre>
  
  <p>I'm getting:</p>
  
  <pre><code>path/products?ids=1&amp;ids=2ids=3
  </code></pre>
  
  <p>Anyone knows how to get around this issue?</p>