fix a few problems including returning a pair composed of the target atom and itself after switching direction
fix a few problems including returning a pair composed of the target atom and itself after switching direction

etomica/etomica,etomica/etomica,ajschult/etomica,ajschult/etomica,ajschult/etomica,etomica/etomica