Fix GObject introspection when getting lists

We want to return the container when returning a pointer array.