Link regions in `ref` bindings from fn arguments.

Otherwise region inference can fail when closure arguments include `ref` bindings. Test case included in the PR.