JIT invokewithcapture

This is JITted as a primitive since important parts
of its logic are not shared with other invoke ops.