Support for autoconverting sizables to arrays in mid-level python binding.

Done with isinstance for any parameter that is a pointer to foo.
This is fragile, but robust enough as long as it's used correctly.
In some cases, i.e. accidentally passing a list instead of a handle, it will self-invoke None*len(foo), which obviously makes no sense.