api::EventManager::unregister_event() added; fixed a bug where Assetgen was crashing at startup