Fixes naming collisions in graph inclusion templates.