Switch lots of types to unsigned