Cleanup roaring integration code

Mainly fix code style, rename variables, clean up some logic
@lemire I'm using the following method to write a mutable bitmap to a bytebuffer and then create an immutable version of it. For some reason unions work fine up until a thousand or so bitmaps, but if I set SIZE to 5000, the cardinality of the union exceeds 500,000, which should not be possible.