Three bug fixes: one in field assignment which assumed the object was a CId, one in the printing of exceptions which rise to the top level, and one in the execution of locals() which caused undefined variables to appear in the result.
Merge remote-tracking branch 'origin/scope-rewrite' into scope-rewrite