Cleanup roaring integration code

Mainly fix code style, rename variables, clean up some logic
@xvrl I have tracked down to issue to a rarely occurring serialization problem. This is fixed in version 0.4.3 of Roaring released just now. After you upgrade, this issue should go away.