why are you calling decode() when encoded int[] is empty?

also, for consistency -- either "this.packer = .." or "bitsPerValue ="