ENH: Updated according to Transforms module API change

The API of the Transforms module will soon change. These modifications make sure that the module will work correctly when Slicer switches to the new API.