[BUGFIX] Use bin2hex in ObjectArray when using PostgreSQL
The ObjectArray type still uses serialize() to convert to the database
value, thus producing data that cannot be used as is for a BYTEA column.
With this change, the serialized string is run through bin2hex() when
writing to the database and through hex2bin on the way back, if the
system runs on PostgreSQL.