You might not need custom scratchpad modules for this. Use Get Vector Array Count to get the number of vectors in your array. You don’t need to send it separately. Then read the velocities from the array and set it for each particle.
Get Vector Array Count
-Gabor