Bulk upsert query from table

It sounds like newRows and changesetArray are arrays. If you push an array into an array then you'll have arrays in arrays like your screenshot. Instead do

changeArray.push(...table2.newRows);
changeArray.push(...table2.changeSetArray);

or both at once with
changeArray.push(...table2.newRows,...table2.changeSetArray);