Unsign and better limit contents of argument count.
Various changes that reduce various -W* warnings.