Still it is weird that they don't activate other unit's range events.
Edit:

JASS:
function CanBeTeleported takes unit u returns boolean
return GetUnitAbilityLevel(u,'Aloc') == 0 and GetUnitMoveSpeed(u) > 0
endfunction
Old function used in VexHA by enter/leave rect events. Hmnn seems I already knew this, it is incredibily lame though that I didn't note how dangerous it is for the caster system, I have to fill its readme with warnings