Fix usage of operator sizeof() in hotkey_dag_get()
Add missing check in flatten_tab()
Add calls to ws_hotkey_dag_deinit() in tests