[ops2c] update hard-coded function definitions, various other fixes

This makes ops2c.pl able to generate an obscure_ops.c that passes
t/dynoplibs/obscure.t.