port a patch from the experimental-drozer branch for transferring binary arrays from the agent