Minor changes to calculation of heliocentric coordinates
(avoid some unnecessary work; possibly increase accuracy)
Avoid null pointer exception for CSPLINE_EXTR
FIND_MAXLOC and friends didn't find all extrema