Reintroduce qualified_name and mangled_name in pipeline and fix closures
Track closure status in pipeline
Merge error messages from inner functions into outer function error env
Update closures for new error reporting