Data size calculation fixes.
Fix for bitblocks of non-standard integer size.
Added bitInvert method.