GenPolicy with typed substitutions in URI templates.