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.
Merge pull request #3488 from pontusmelke/issue2038

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