type: recurse up the prototype chain to type to find the `ffi_type` to use

Makes the "long" and "ulong" types work.
v1.2.5