Helper Encoder/Decoder classes for the Arithmetic
Added more flexibility to DC decoding by providing a fetch closure.