Fixed some rounding errors in the tick location calculations for the automatic axis labeling policy, Fixed issue 506.