S&P 500 had trouble extending gains, and undershot an important support – only to rebound before the closing bell – respectable on such a risk-off day.