added correct insert method for IdManager and SvgElementCollection