getUsedIDs now also handles Morphshapes and some special tags.