[main_ia/A*] Fixes 2 bugs in arc_len (bad length in some rare cases...)
* Bad length in some cases was (pi+theta)*r instead of (2*pi-theta)*r
* NaN length returned in some rare cases