I think of any "homeless" NPC as a townie. They're separate from Maxis premades.
As for "ugly nuisance", some are, some aren't. The ones that aren't tend to marry into my created sims' lives and earn their own place in the world.
The ones that are especially annoying get thrown into a grave in hopes that whatever niche they filled will be improved when the game generates a better NPC.