const fixes for nmod_poly, and a few fixes for other modules.