varnish: fix scope warnings in templates

Change-Id: I349b5328d504d75f2c71a33fd16713f5d1e03875
Signed-off-by: Giuseppe Lavagetto <glavagetto@wikimedia.org>