Bug 869542: fix invocations of function_secret in templates