Adjustments for variable closures.

The index for variable closures are given relative to the
current program's variable block (including virtual variables),
but current_variables points to the non-virtual variables now.
This patch makes to required adjustments.