Commutative rings whose cozero-divisor graphs are unicyclic or of bounded degree