add_var now has an optional function_name and if supplied, will add the variable to the function. I believe there are some inheritance issueswith your current get/add_func setup but because UC doesn't support same-named functions with different signatures, this issue is very limited in scope. A parent class may inadvertently have local variables present in sub-class overrides added to it due to this issue if myunderstanding is correct.