src: Fix line numbering in compiler errors/pattern match failures.
service: Make line numbers meaningful when injecting code.