NodeID is added to path ArchetypeInternalRef

Make sure NodeID is added to path if appropriate, see unit-test ArchetypeInternalRefTest.java->testParseCheckIfNodeIsIsTakenIntoAccount for example