Really late bug report for 0.3.2 (sorry I haven't tested in 0.4 beta yet):
Magic versus tech, I had a game on a map meant for 2v2 by accident, causing an opponent to be right next to me, which resulted in immediate anarchy. After destroying their castle, which the workers were auto-repairing, the workers came over an repaired my damaged mage tower. Not only are they repairing someone on the wrong team, but the mage tower is the wrong faction and not on the list of units they can repair.
Sorry if this has already been fixed by now.