Multiwavelength fiber laser with an intracavity polarizer