upnToTerm modified to return (Either String SymTerm).

This is necessary for the parser unit tests to be executed.