Fix array
Struct array
Add test
Nullable array
Fix function type