Reduce false positives with jumping almost onto block edges.

Also begin to rearrange lostground workaround checking.