A time-honored belief holds that inflation is bad for stocks, but recent developments may be challenging this view.