Fix guid setting

1. Fix where the guid is set when adding a node.
2. This is based on the fix by Ben:
https://github.com/DynamoDS/Dynamo/pull/2028

@Benglin