Made entities.jq and archives.jq generic.

why can it be just 0 or 1? I think, this is a regression, no?