Fix magn-4105: Dynamo crashes on offseting permiter curves
Change to Object.ReferenceEqual()
Change == to Object.ReferenceEquals()
Remove redundant namespace
Merge pull request #2110 from ke-yu/fix_magn_4105

Fix MAGN 4105 Dynamo crash on Offsetting perimeter curves