`to lines` now converts incoming chunks of text into lines. Other misc
fixes.