set array reference ids on nodes