Merge: Integer signedness and overflow and related fixes.