Include anon functions in scope tree