Resolving bugs

Resolving bugs encoutered when manipulating the ImmutableRoaringArray's buffer.