tools/smaz: add a dictionary Length accessor