Addressed few code review comments

This pull request addresses few review comments in [another pull request](https://github.com/DynamoDS/Dynamo/pull/1495).