Fixed issue with `CREATE UNIQUE` when using array parameters.

Arrays were compared by reference instead of equality which lead
to the unique constraint to fail.