Issue 11533 - Compiler should allow to being nested for static local template functions

https://d.puremagic.com/issues/show_bug.cgi?id=11533

The enhancement will introduce more consistent semantics for "local but static template".