Modified migration functions

Due to changes in FunctionObject.ds
(MAGN-1870)
Porting test case

Dynamo.Tests.ListTests.TestTransposeEmptyInput (MAGN-1934)