Minor warning fixes

Type comparisons and stuff.

-[Unknown]