Bug fix merge_struct

Fixed but with array structures in merge_struct