Ising-like transitions in the O(n) loop model on the square lattice