Minor clean up for code review
Merge pull request #1304 from ke-yu/fix_magn2279

Minor clean up for code review
Fixes following test failures :
 ProtoFFITests.CSFFITest.TestListMarshalling_DStoCS
 ProtoFFITests.CSFFITest.TestListMarshalling_DStoCS_CStoDS
and defect:
 http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-2301
Merge pull request #1305 from sharadkjaiswal/MAGN-2301

Fixes following test failures :
added base case for ast conversion
removed unnecessary type argument
multireturns can take an Order parameter
added deadlock safeguards in idlepromise
wrapped regen calls in idle promises
updated ProtoInterface DLL