compression_wrapper: Add cr_compression_type() function.