No need to special-case pointers in write_arg.

The catch-all case has the same behaviour.
Pull out the selection of ctypes_call/ctypes_call_errno.