Improve internal error API.

Make line and column separate parameters.