Issue 9571 - link error due to using unique ids in anonymous funcliteral

http://d.puremagic.com/issues/show_bug.cgi?id=9571

Emit unique-id in local scope for function literals instead of global ones.