Bond order bug fix

Fixed a bug which would ignore bond order terms arising from seeing
images of the same particle in the three-body term in a small periodic
system.