convert ArrayBuffer from pathWorker back to array