Polynomial first integrals of systems in the plane with center type linear part