Issue 12217 - Unstable instance mangled name of function local template

https://d.puremagic.com/issues/show_bug.cgi?id=12217