Replace `foo == NULL' and `foo != NULL' with `!foo' and `foo', resp.

Other minor formatting.
49 files changed