git hash-object: introduce the --strict option

With the new option, the fsck machinery is used to validate the hashed
object.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
fixup! git-mktree: fsck the tree object before writing