Backport hstore functionality from rails 4