#141 SVG save/restore. Added type and base-type for diagram description.