atan2: fix y==-x diagonal case.