handle L==N-1 special case in PolyTF fit

This fixes three bugs:
   - we were not catching the L=N-1 case at all in polytf fit
   - the parametric L=N-1 case was slightly wrong,
     evaluating b at the wrong x.
   - we were not looking for linear g,a,b cases

I was unable to extract a profile from the image in the attached bug,
but the two new test cases cover all three of these bugs jointly.

Bug: oss-fuzz:8061

Change-Id: I5628b79eac178fd2ff0b6015d2f06e6fed964df9
Reviewed-on: https://skia-review.googlesource.com/124482
Commit-Queue: Mike Klein <mtklein@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: Mike Klein <mtklein@chromium.org>
3 files changed