Reset Class2Type and Type map on runtime shutdown

When the runtime gets closed also the static type maps should
be cleaned in order to allow a second life cycle within one
process.

Change-Id: I9bb4ecea07506743608eb2133a7ed207376ec643

git-svn-id: https://svn.apache.org/repos/asf/etch/trunk@1679580 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm b/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm
index dc2cc06..faffbb0 100644
--- a/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm
+++ b/binding-cpp/compiler/src/main/resources/org/apache/etch/bindings/cpp/compiler/vf_cpp.vm
@@ -45,6 +45,8 @@
   if (runtime->isClosed()) {
     //the runtime is closed and is removed
     $vf::SRuntimes.remove(runtime->getId());
+    $vf::class2type()->reset();
+    $vf::types()->reset();
   }
   return ETCH_OK;
 }