Refactor break coupling of LineRef and ptrdiff_t

Authored by mreeves on Jul 21 2018, 3:59 AM.