wip for by-value upvars -- something is broken in inference