Use function args as frame reference of function variables instead of function body.
Function body was unsuitable (unsafe) for the purpose since in R3 it is possible to define distinct functions sharing the same body.
Corrects bug#2025