Nonuniform cosmological birefringence and active galactic nuclei