While more Americans are feeling positive about the economy, layoffs from several companies are providing some warning signs.