dtoa: speed-up shortest-representation.

Detect early when we make no progress and have made a sudden progress.