FIX: issue #362 (ROUTINE can't marshal input and output at the same time)