schema tree FEATURE support deviation type prefixes

In case a deviation replaces a type where there
are some qualified names, the prefixes must be
resolved in the context of the deviation module,
not the deviated one.
diff --git a/src/parser_stmt.c b/src/parser_stmt.c
index 5bb6bb6..07faa32 100644
--- a/src/parser_stmt.c
+++ b/src/parser_stmt.c
@@ -756,6 +756,7 @@
         return LY_EVALID;
     }
     LY_CHECK_RET(lydict_insert(PARSER_CTX(ctx), stmt->arg, 0, &type->name));
+    type->mod = ctx->main_mod;
 
     for (child = stmt->child; child; child = child->next) {
         struct ly_in *in;