Create multiple contexts. Fix many errors.

Down to 16 errors, mostly related to capturing 'this'.

Also need to generate __dispatch and __patch for the generated context class.