On the arithmetic of generalized Fekete polynomials