Migrate MissionLogicDialog, plus bugfixes.