Fix a showstopper where pasting a DSVarArgFunction node crashes

This pull request fixes the following defect (and added a corresponding unit test case):

[MAGN-2375 Crash on pasting a node with multiple inputs](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-2375#)