Merge pull request #1477 from ethomson/checkout_modified_use_cache checkout: use cache when possible to determine if workdir item is dirty