Fixes various issues of merging of slotted packages