fix corner cases in collapse_vars
& reduce_vars
#5916
Merged
This job succeeded
Loading