standardize almost_linear code; reduce linear_coeff tests
Merge pull request #1950 from smichr/lincoff

standardize almost_linear code; reduce linear_coeff tests