Removed unnecessary context scoping.

Also fixed uses of the wrong context in LocalDispatcher.
Derived tests that I touched from GafferTest.TestCase.