Tidied up end of MinuitOnPotentialPerpendicularToPath::TryToImprovePath to make neighbor displacement averaging easier to read