[dev] dump array into csv