Convert some functions to size_t

6 jobs for Warnings in 25 minutes and 21 seconds