Fix typos in AI code: make iterator initialisation and end statements matching.

Report and patch by Emmet Hikory (persia@gna)

See gna bug #21895

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@24763 a0f10bec-cc02-0410-94fc-a9cfff90b4cd
Check AI goto sanity with pathfinding.

Patch by Emmet Hikory (persia@gna)

See gna patch #4643

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@24766 a0f10bec-cc02-0410-94fc-a9cfff90b4cd