Fix binary transfer of parameters / make it more robust

Perhaps an `assert`, or at least a comment, here then?