Fix DSL execution context

- Make execution context an explicit lambda expression argument, instead
of a static marker class, to avoid subtle errors.