properly disabled nested %template declared in other scopes