clean up simd code, fix uint32x4 heap offsets, and add testing