Some linting / whitespace and comparison fixes

As far as I can see, we can use the strict comparison operators everywhere. Please correct me if I'm wrong.