Issue #159 - Added preliminary code

This is the preliminary code to allow begin to splice definitions back to the parent scope.
Added test case