element.py: Only reset Artifact's cachedness when it might change
Description
We were potentially resetting artifact cachedness every time we updated element state. If an artifact wasn't cached, this meant consulting the filesystem every time.
Changes proposed in this merge request:
- Remove the reset statements from Element.__update_artifact_state
- Add reset statements to Element._pull_done
- Add reset statements to Element._assemble_done
This merge request, when approved, will close: #1028 (closed)