test fold permutations with various maxOverflow / offsets
don't discard current maxOverflow if offset is high enough
fix issue when offset changes folding maxOverflow
minor optimizations
Merge pull request #567 from metamx/hyperloglog-bugfixes

Fix edge cases in HLL folding