Scoping edge case fix

The previous implementation would report assignments to constant references for variables defined in
a closure if the englobing scope also had a reference of the same name.
Indicate in which file a compilation error occurs
Avoid spurious collection pollution causing errors
sort() sorted() reverse() reversed() list augmentations
Tests for the sort() sorted() reverse() reversed() list augmentations