Some real-estate and municipal bond markets may be under threat by changing demographics.