Minor refactoring around "CompileCustomNodeDefinition"
Addressed review comments around "IEnumerable" and "ToList"
Merge branch 'master' of https://github.com/DynamoDS/Dynamo into GraphSyncData
Merge pull request #2228 from Benglin/GraphSyncData

Re-factored "CompileCustomNodeDefinition"