Replace type %d (for types) with %u in error messages (-Wformat)