Fixing matrix multiply algorithm and applying transforms to SVG DOM nodes.