@Ingolf Got the file: and yes the issue here is that an expand stroke will be needed first.
I'm not sure how this could be handled better, I will consider comments by @b77 but at the end of the day, if it is just some shapes that the user wants to merge, it cannot be blocked based on some attributes.