Fixed varType / rowType discrepency

The getSemRecType method was expecting a key of varType and sometimes
getting a key of rowType. Changed instances of rowType to varType and it
seems to have fixed the issue.