Prevent redundant copies when pulling in queried data-points

https://github.com/influxdb/influxdb/commit/5503d5424e20fe98c863d0e35927df80fd710da1
fix the client test

https://github.com/influxdb/influxdb/commit/df7e4d2b9219625bbd481c0a038eb87795288f22
forked