deflate_compress: factor out deflate_write_match()
deflate_compress: factor out deflate_write_match()

Reduce code duplication between deflate_write_sequences() and
deflate_write_item_list().

ebiggers/libdeflate,ebiggers/libdeflate,ebiggers/libdeflate