Fix a regression in the selection event code.
Add unit.str_id
Add missing import for plugins.
Fix more regressions from the event module changes.