All-optical switching and polarization instabilities