Fix ordering of meta-data values requested by grouping
Created by: szarsti
I realised, that hstore data structure does not preserve keys order. There is no way to make sure that dimension values are returned in the same order as they have been requested. I have changed query builder to return full hstore qith dimensions we need and i unpack values in erlang, preserving requested order.