Cleanup roaring integration code

Mainly fix code style, rename variables, clean up some logic
@lemire Just redid some testing, and it works fine with casting, but .toImmutableRoaringBitmap() still has some issues. When I use the toImmutableRoaringBitmap method, the union is now non-empty, but does not seem to include everything.