Fix Issue 10662 - byLine!(Char, immutable Char) won't compile

This wouldn't compile because readln(buf) now requires a mutable buf.
Make ByLine.line, ByLine.first_call private.
Update unittest to test non-empty files without any newlines.