Simplify getVisualID() in PartUtils (let it work on the typed lists of
elements the SDocumentGraph keeps)