Fixed two of the failing tests for this "Fix lost ticks" branch, and fixed a problem
in the calculation of the log tick locations.