Fix for issue #265 - reference comparison of unlike types returns true.