Modify decoders to deal with slicing.

 - New decoder utils functions.
 - Reworked decoder compression to deal directly with keyspaces.