tree data UPDATE support for milti-target leafref links (#2161)

* Adding support for multiple leafref target nodes
diff --git a/src/tree_edit.h b/src/tree_edit.h
index 113c9e3..af13fd4 100644
--- a/src/tree_edit.h
+++ b/src/tree_edit.h
@@ -241,9 +241,9 @@
     { \
         LY_ARRAY_COUNT_TYPE index__; \
         LY_ARRAY_FOR(ARRAY, index__) { \
-            if (ARRAY[index__] == VALUE) { \
+            if ((ARRAY)[index__] == VALUE) { \
                 if (index__ != LY_ARRAY_COUNT(ARRAY) - 1) { \
-                    memmove(&(ARRAY[index__]), &(ARRAY[LY_ARRAY_COUNT(ARRAY) - 1]), sizeof *(ARRAY)); \
+                    memmove(&((ARRAY)[index__]), &((ARRAY)[LY_ARRAY_COUNT(ARRAY) - 1]), sizeof *(ARRAY)); \
                 } \
                 LY_ARRAY_DECREMENT(ARRAY); \
                 break; \