controller: Change various `int`s to `size_t`s.