Performance fix

Changed all "==" to "===".
Merge pull request #1 from pyrohail/master

Small performance fix.