Optimized `_.compact` and patched `_.xor`.