Gradient fix

Added rendering of gradientTransform, fixed gradient position ( not working since big commit of svg import ) fixed use of xlink:href in gradients, stop opacity 0% was omitted. Fixed toSVG for gradients.

Related to issue #1597