All aliases are stored in the top scope, and therefore not dropped at the end of a scope. See this issue.