Add names when not only node or in a list to handle compound tags