Implemented a highly evil way of working around the fire and forget memory leak in StaticTypeRegistry.cpp.