Dlfcn/generator: Add support for writing NSString, and arrays on fields