Implemented possible fix for detecting variable scoping.

TODO: During testing a run away machine was thrown after the second begin / end block.  Last correct value printed was "print z / 5;" which outputted correctly '1'.  Immediately after that a run away machine was thrown.
Needs to be investigated.