Fixed some periodicity problems, but runtime Node.update_position still has problems near singularities.