I have a saved game where when I move my army out of a city, the city militia and archers come out as well:
https://www.dropbox.com/s/vgk74c1o7dvqa3f/new.EleSav
Go to city called Saffara, ctrl select all the units in the city and move them out of the city. You end up with City archers and city militia coming out of the city instead.
Screenshot:

And here is another save game where moving the mages out of the same city sends them off on some strange path. Take a mage and move him one tile out of Saffara:
https://www.dropbox.com/s/18jn4ntzn7r6uq2/PreviousAutoSave.EleSav