Fixed google code Issue 228

- more defencive use of finNearestPoly() in dtCrowd
Fix for google code Issue 221

- fixed agent idx bound checks