fixed enums & enum values language symbol table namespace

fixed skipping of %templates in %extend if they are in the wrong scope