added hstore_array function and aggregate