qtscript: make sure both eventObjectSeen and
eventGroupSeen are triggered for objects that
have both OBJECT and GROUP labels on them.
jscam: Fix a few race conditions.

Fix warning when factory was destroyed
before its orders were modified.

Fix crashes on end of level when enemy base cleanup
is triggered after global level cleanup.

Fix failed assert on CAM_1B, when New Paradigm
scout droid is destroyed before retreat is triggered.

refs ticket:4234