Convert deps collections to arrays first