Fixes a failure to take into account the new value of lastN.
Allows lastN=0 in adaptive lastN.
Increases the default values for the "lag" parameters for adaptive
lastN, making it change lastN more conservatively.