Fix a few warnings, mostly type comparisons.