Fixed bugs wth context scoping in Channel reader callbacks.  Added tests for write ordering.