patch 8.2.3851: Vim9: overhead when comparing string, dict or function

Problem:    Vim9: overhead when comparing string, dict or function.
Solution:   Call the intented compare function directly.  Refactor to avoid
            duplicated code.
diff --git a/src/version.c b/src/version.c
index 5272a5b..d65a5c1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -750,6 +750,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3851,
+/**/
     3850,
 /**/
     3849,