Slightly improved CDIC generation

Huffcdic::cdics_from still isn't generating valid CDICs yet, but
getting a lot closer!