LDA: Handle arrays passed as strings for earlier versions of GPDB/PG

GPDB < 4.1 and PG < 9.0 pass arrays as strings. These should be
tackled using mad_vec function provided in utilities.