lib/generate: generalize dedentFunc
lib/generate: generalize dedentFunc

Take take the min indent after the first line; now only has edge cases
if we see mixed tabs and spaces in the input.

Hardmath123/nearley,tjvr/nearley,tjvr/nearley,Hardmath123/nearley