Yeah, a simple saturating `|=` might to the trick.

Would you mind adding a test that specifically tests this case?