Fix unused parameter warning.
Move BitPacking.h include into implementation.
Fix type conversions.