Changes eqality operator to identity operator. Fixes #1246