In the TD pass, iterate over globals directly instead of through the whole scalar