No idea what these are for but I managed to get detour to work better using C++ via the Avoidance Weight parameter.