Localize more compiler errors.

Move some errors from the semantic pass to the syntactic one.
Deleting dead code.
Breakpoint spans calculation