Types are compared ahead of equality coparisons
Merge pull request #10 from iain-peddie/compare-types

Types are compared ahead of equality comparisons