Make "commit-tree" check the input objects more carefully.