Fix array and hstore escaping and parsing.