Using local variable 'intermediate' in doTransform in call to contextual...

... transforms - e.g Shiftr makes a new output of the input passed to transform method. Added test case as well