check for endless context switches
avoid infinite loops for broken hl definitions
same trick as for endless looping during normal hl, don't allow more than 1024 changes