semantic: Don't remove nested functions in the gatherer.
semantic: Ensure that internal __nested variables aren't flagged for shadowing.