Uppers to zero in polynomial rings and Prüfer-like domains