Merge pull request #1281 from ke-yu/fix_magn1851

Cleanup ProtoCore.Type and fix MAGN-1851
Fixes for string marshaling in FFI
Merge pull request #1284 from sharadkjaiswal/DataMarshaling

Fixes for string marshaling in FFI
Fix regressed test case CoreDynTests.MultipleOutputs