Fix bug so that None does not equal 0.
Merge remote-tracking branch 'rixner/master'
Merge pull request #151 from rixner/master

Fixing 0 == None