fix crash when opening saved game, returning to menu, then opening level
only do resource check in SegmentUnit.delete() if unit that collects resources is deleted
no longer need to explicitly ignore AI resources to have reasonable performance
group AI code by scenario and state