appendDef changed to accept SVGObjectBase ( and not a display object )