lineid: Simplify LineId class to only store the hash

Slight performance improvement.