Made GanymedeXMLSession.knitInvidReferences() more readable and optimized