context UPDATE new flag for enabling features of imports

Allow enabling all features of implemented
imports when loading a new module.
diff --git a/src/schema_compile.c b/src/schema_compile.c
index 0e0e45a..5978a45 100644
--- a/src/schema_compile.c
+++ b/src/schema_compile.c
@@ -784,7 +784,7 @@
         void *prefix_data, ly_bool implement, struct lys_glob_unres *unres, const struct lys_module **mod_p)
 {
     uint32_t i;
-    const char *ptr, *start;
+    const char *ptr, *start, **imp_f, *all_f[] = {"*", NULL};
     const struct lys_module *mod;
 
     assert(implement || mod_p);
@@ -815,7 +815,8 @@
 
         if (!mod->implemented) {
             /* implement if not implemented */
-            LY_CHECK_RET(lys_implement((struct lys_module *)mod, NULL, unres));
+            imp_f = (ctx->flags & LY_CTX_ENABLE_IMP_FEATURES) ? all_f : NULL;
+            LY_CHECK_RET(lys_implement((struct lys_module *)mod, imp_f, unres));
         }
         if (!mod->compiled) {
             /* compile if not implemented before or only marked for compilation */