parser BUGFIX explicit context passing

Fixes #439
diff --git a/src/resolve.c b/src/resolve.c
index aeb3a88..a3fd7ad 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -4850,7 +4850,7 @@
             LY_CHECK_ERR_GOTO(!must, LOGMEM(ctx), fail);
             for (k = 0, j = *old_size; k < rfn->must_size; k++, j++) {
                 must[j].ext_size = rfn->must[k].ext_size;
-                lys_ext_dup(rfn->module, rfn->must[k].ext, rfn->must[k].ext_size, &rfn->must[k], LYEXT_PAR_RESTR,
+                lys_ext_dup(ctx, rfn->module, rfn->must[k].ext, rfn->must[k].ext_size, &rfn->must[k], LYEXT_PAR_RESTR,
                             &must[j].ext, 0, unres);
                 must[j].expr = lydict_insert(ctx, rfn->must[k].expr, 0);
                 must[j].dsc = lydict_insert(ctx, rfn->must[k].dsc, 0);
@@ -4896,7 +4896,7 @@
 
                     /* duplicate extensions */
                     iff[j].ext_size = rfn->iffeature[k].ext_size;
-                    lys_ext_dup(rfn->module, rfn->iffeature[k].ext, rfn->iffeature[k].ext_size,
+                    lys_ext_dup(ctx, rfn->module, rfn->iffeature[k].ext, rfn->iffeature[k].ext_size,
                                 &rfn->iffeature[k], LYEXT_PAR_IFFEATURE, &iff[j].ext, 0, unres);
                 }
                 (*old_size)++;