Changed how crossover dihedrals are written when local_twist is False; fixed routines that walk through helices