Implement NLReader.
Test and fix parsing piecewise-linear terms.