Changed instock manager to generate distinct results.

Not sure why it matters, but Product.instock.count() now returns
the correct values.
Merge branch 'hotfix/0.9.3' into develop