Backend: Fix the way dochash are computed:
- Img doc: Fix the exponential size of their hash ...
- Work with integers instead of strings

Signed-off-by: Jerome Flesch <jflesch@gmail.com>