Improve variable evaluation scope

Properly scope variable evaluation to the function the traced process is
currently stopped in.