Yes, except, like I said, I never got past spawning the scouts, so my code is basically:
//This occurs after a five-mark delay:
TethysGame::CreateUnit(Unit1, mapScout, ...);
AIScouts.TakeUnit(Unit1);
Attempting to add the Scouts to the group was what caused the crash, so I decided not to waste my time writing code I couldn't use.
I'm glad I was able to use a little exploit I discovered to automate arbitrarily spawned AI combat units!
Edit: Never mind. I found out what was wrong: a stupid typo...
Off-topic edit: HAX! I got missions objectives in a saved game to not crash somehow. I must research how I did it though. I think it involves updating the mission objective list by completing an objective, or possibly by adding a new one. I'll get back to you as soon as I can...