codegen: Fix initializer lists for structs with array fields