Merge pull request #284 from inducer/fix-invalid-cached-written-variables-carryover
Do not carry over _cached_written_variables with copy, add test that it doesn't survive transformations
Do not carry over _cached_written_variables with copy, add test that it doesn't survive transformations