fixed ubsan invalid vptr error with dynamic_array<hash_pair> in struct work_item (nw)