Fix auto-detection of resumable lambdas.