fixed enums & enum values language symbol table namespace
fixed skipping of %templates in %extend if they are in the wrong scope
additional check for template type, to handle constructors correctly
Merge pull request #123 from wkalinin/test2

fixed enums & enum values language symbol table namespace
fixed skipping of %templates in %extend if they are in the wrong scope