Fix a bug in SIMD for codegen

- The captured struct is not initialized properly when
  we split the last iteration out for a simd loop. This causes
  the complied program segfaults.