Some fixes for SVG along the way: Fix for group nesting. Fix for reused content (metadata etc.) cause exceptions.