Support variable assignment in local blocks.

This should fix #347.

Notes:
* For tests, see https://github.com/openscad/openscad/blob/issue347/testdata/scad/misc/scope-assignment-tests.scad
* anonymous scopes are ignored
* Function and module definitions in local blocks are not (yet) allowed