Cherry picked commits from ChocoButter2b1

These commits are required to fix [output port issues surrounding array](http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-1045) in code block node. These changes were previously merged into ```ChocoButter2b1``` but did not get merged into ```Master```.