Several teleport fixes so enter/ed/exit/ed is called properly
Performance change to AI areas