More strict equality comparison operator fixes, expand .gitignore

Even more fixes.