HLL: avoid direct buffers + fix swap target buffer
Merge pull request #511 from metamx/fix-hll-buffer-and-swap

HLL: avoid direct buffers + fix swap target buffer