libyang REFACTOR applying deviations, augments, and refines (#1217)

They are no longer applied as part of their
definition module compilation but instead their
target module compilation.
diff --git a/src/context.c b/src/context.c
index 08ae49f..1550537 100644
--- a/src/context.c
+++ b/src/context.c
@@ -630,8 +630,8 @@
         return LY_SUCCESS;
     }
 
-    LY_ARRAY_FOR(cur_mod->compiled->deviated_by, i) {
-        mod = cur_mod->compiled->deviated_by[i];
+    LY_ARRAY_FOR(cur_mod->deviated_by, i) {
+        mod = cur_mod->deviated_by[i];
 
         if (bis) {
             LY_CHECK_RET(lyd_new_term(parent, NULL, "deviation", mod->name, NULL));