adg: fixed remapping of AdgPath over primitive
adg: fixed remapping of AdgPath over primitive

When an element is added to a GArray, the data can grow and be remapped
to another place. Corrected a long-standing bug that did not take into
account this remapping.

ntd/adg,ntd/adg