Fix slope checking assumptions and normalizeErrors methods

Slopes should be within the min/max range or 0 if the maximum lag
is reached. Restore old behaviour for normalizeError methods.