Fix how we deal with nested structs in IR.