Crash fix and more scanning

Sorry... but that's really all now.

It crashed when you stopped a game and then loaded another. There were also more places where it had to scan the visible functions.
Sometimes compilers turn a function call at the end into a simple jump to the start of the called function. In these cases the lines are not drawn now.