caddyhttp: Clean up variable scope in vars matcher