Constructing contexts with CompiledFunction and apply'ing.