Modified getExprType

Inserted a check if parent statement is an assignment statement. Lot of redundant code. Needs to be cleaned up. Short term fix.