Convert arrays and delimited strings to PostgreSQL array representation.