Add optional way to switch resolve strategy for executeInContext