Added check for GPDB<4.2 to ensure array is not treated as string