patch 8.1.1484: some tests are slow

Problem:    Some tests are slow.
Solution:   Add timing to the test messages.  Fix double free when quitting in
            VimLeavePre autocmd.
diff --git a/src/eval.c b/src/eval.c
index af7a4af..5452f45 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -430,11 +430,12 @@
 	vim_free(SCRIPT_SV(i));
     ga_clear(&ga_scripts);
 
-    /* unreferenced lists and dicts */
-    (void)garbage_collect(FALSE);
-
-    /* functions */
+    // functions need to be freed before gargabe collecting, otherwise local
+    // variables might be freed twice.
     free_all_functions();
+
+    // unreferenced lists and dicts
+    (void)garbage_collect(FALSE);
 }
 #endif