made serializing of arrays for 'object' datatype work