Congratulations, you've found a bug in the SDK! Your code is fine, though you only need the :count=>0 on the call to results, not to dispatch.
We'll get a bugfix release out, but for the moment you can install the SDK from the develop branch of the GitHub repository and your code should work.
... View more