It turns out that I have conditions for team mode in place already for AIs in team mode not to break their treaty or declare war on each other. Might require a bit more investigation.
If you can e-mail your saved game Q, it will help to troubleshoot.