Fix propagation of parent scope names to child T-functions