Fixed handling nested coroutine definitions.