Find undeclared vars in a function def