Replacing curly braces in psql array literals