CURATOR-93 - Added compress() option for transactions.

Why is this only asserting equal lengths instead of a strong assertion for equal content (after decompression?)