Add an integration test for enum template arguments

This currently fails with both frontends.