Fixed bug with a bignum conversion in bitmap pack/unpack;
Clean-up some commented lines;
Added cache for bitmap.length;