While many homes that hit the market during Montana’s pandemic real estate boom ended up in the hands of new arrivals, others were turned into short-term rentals to take advantage of the state’s growing popularity among travelers — even if local zoning laws don’t permit such uses in some areas.