Fixed incorrect handling for non-string types.
Fixed type comparison in the case if true<->false comparison.
Merge pull request #1 from kapouille/master

Fixed comparisons between true and false types.