path FEATURE duplicate value types in predicates

To avoid problems with the order of freeing
the type itself and then the predicate.
diff --git a/src/tree_data.c b/src/tree_data.c
index cd1f4f0..9a40133 100644
--- a/src/tree_data.c
+++ b/src/tree_data.c
@@ -1237,6 +1237,7 @@
             ret = lyd_value_store(ctx, &pred->value, ((struct lysc_node_leaflist *)schema)->type, value, strlen(value),
                     NULL, LY_PREF_JSON, NULL, LYD_HINT_DATA, schema, NULL, LY_VLOG_LYSC, schema);
             LY_CHECK_GOTO(ret, cleanup);
+            ++((struct lysc_type *)pred->value.realtype)->refcount;
         } /* else we have opaq flag and the value is not valid, leavne no predicate and then create an opaque node */
     }