title: Exception occurs performing aggregate queries on x64 platform
body: <p>When running a query using aggregates I receive the following exception:</p>
  
  <pre><code>Microsoft.Azure.Documents.BadRequestException: 
  {"Errors":["Cross partition query only supports 'VALUE &lt;AggreateFunc&gt;' for aggregates."]} 
  ---&gt; System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A0B00
  </code></pre>
  
  <p>My query code is:</p>
  
  <pre><code>var store = "1234";
  var sumResults = client.CreateDocumentQuery(
  UriFactory.CreateDocumentCollectionUri("my-data-db", "my-collection"),
  $"SELECT SUM(t.totalAmount) FROM t where t.siteData.siteID = '{store}'");
  </code></pre>
  
  <p>It took me a while to figure out this works fine when the build platform is set to x86 but fails when set to x64.</p>
  
  <p>I'm using the latest version of the package 1.12.2</p>
  
  <p>Any ideas on how to make the x64 version work?</p>