Text this: Homogenization and nonselfadjoint spectral optimization for dissipative Maxwell eigenproblems