Fix binary transfer of parameters / make it more robust

Could we make the parser nodes not throw the exception instead? I can put a comment in though.