Fixed TerminalSymbolNode inheritance.