bits: Fix handling of |= and &=