Less fragile code for maintaining Dust globals across rendering calls