clean up yet more annoying signed/unsigned mismatches and fixup
yet more incorrect types
9 files changed