Changes eqality operator to identity operator. Fixes #1246
Merge pull request #1247 from embolden/master

Changed the equality operator to identity. #1246