Fixes for World::DrawDebugLine

This corrects a couple of minor problems with debug lines, especially a program hang on permanent lines.

Let me know if you'd prefer a different coding style for dealing with the iterator.