Use swift storage all class scope for templates

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>