Fix a compact block issue with ARC and captured vars