Element.transform() now return a transform

added the overload for Element.transform() without arguments
Fix for #1921