Correct local variable table generation

This has been a long standing issue. Somehow I got it all wrong: you
just have to visit start / end labels, and then visit the local
references. With this code it gets really straightforward.