make a couple things safe for checked signed<->unsigned conversion