Add EnableIf template guards to cookie and encrypted_cookie contextes.