Bugfix: modified merge_two_structs to handle nested structs