Fix issue when setBond has to create a new bond.
Fix the setAngle and setBond commands, and add tests for when new angles or
bonds need to be added.