Simplify compression API by compressing into a SmallVector rather than a MemoryBuffer

This is the other half of r205676.