Rewrite scan_coho_interval_{left,right}_endpoints in terms of new functions coho_interval_{left,right}_endpoint_with_epsilon.