Infinitesimal generators for a class of polynomial processes