Fixed the problem.

Sequences now return a copied sequence containing the evaluated expression, whereas the underlying sequence has not been modified. Also chnaged all the other variables to return a copy of themselves. The assignment operator and unary operator will take care of assigning anything to a variable name, so they need not do that. Now, testfile.tscalr behaves as expected.