Fix dhall freeze --cache --all to be idempotent
#2500
Merged
dhall freeze --cache --all to be idempotent
#2500