updated arrayExport function, now support multi dimensionnal array and heredoc syntax