Update Transpose() method
add test case
Merge pull request #3128 from ke-yu/fix_magn3738

Fix magn 3738 BuiltinFunction Transpose({{}}) returns {{null}}