implement various four-argument nmod_polyxx functions