Fix gnu compiler error in array_struct_v8
Refactor array_struct_v8