Fix line number offsets being wrong

This fixes the primary problem addressed in #1, the line of the error being wrong.

However, it does not resolve the issue of the "near" context being useful, and I'll address that in a separate request once I work out how.