Population growth in midsize cities held relatively steady last year, even as the national rate slowed.