fix getType in SymbolTerm and LDA example