Line: some efficiency/pedantic fixes.

It now caches the generated line instead of constantly retrieving it on
demand. It also stores raw strings as-is now, instead of parsing them
then rebuilding them again on-demand.