Only need to look up the immediate non-block/catch scope for the same-name special case. fixes #1733
-(x*y)
AST_Node.optimize()