smaz_generic-tools: fix removal of the first item of a dictionary