IRegistrationBuilder: fix compile error in clang

use 'template' keyword to treat 'as' as a dependent template name
use 'template' keyword to treat 'named' as a dependent template name
simply adding "template" before as and name should fix it