Dollar General’s first-quarter results got a boost from middle- and high-income shoppers looking to save money. But to UBS analysts, the results represented more than that.