Compared types directly instead of their string representations.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
Merge pull request #315 from ddobrev/master

Compared types directly instead of their string representations