Bugfix: fix keyStreamWithQueryRange.

Use mapreduce to ensure streaming keys from secondary index query are
returned in the correct order.