Added finishing touches to the value reference substitutions in the
subroutine translation