Correctly build output parameters in DS editor, fixes #1632