Move upvalue closing logic from the else branch to before the fiber completion check to ensure upvalues are properly closed when a fiber finishes. Add test cases for closure behavior across fiber yields and for Fiber.create argument type validation.
Move upvalue closing logic from the else branch to before the fiber completion check to ensure upvalues are properly closed when a fiber finishes. Add test cases for closure behavior across fiber yields and for Fiber.create argument type validation.