Template: Add compatibility with old dictionary format.
Template: Add compatibility with old dictionary format.

Fixes issue 263.

cb8/saml2,ArtemTeleshev/php-saml2,sitya/saml2,sgomez/saml2,simplesamlphp/saml2,madmatt/saml2,newmen/saml2