'with' directive implemented, along with related tests

N.B. one text 'xit'ed, as it relies upon scope chain fallbacks, which are not yet implemented

(previous pull request was inadvertently made to master branch. apologies.)