Update SIMD code generation due to simd.js update and fix the undef handling