derp: Fix reductions.

Also improve compaction. Attempt to compress alternations upon derivation
rather than during compaction; alternations tend to *immediately* yield lots
of empty refs, especially for charsets.