Fix range queries over partition keys

Same as https://github.com/TechSmith/hyde/pull/56 but for partition keys.