Added support for expanding Line.Builder.

It's not wildly efficient, but this is just for building transient lines which
are eventually copied into buffers, at which point their trimmed to exact size.
So I'm not going to lose a lot of sleep over it.