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.
LDA: Have mad_vec return a float array
LDA: Add function to convert python list to string