[FOLD] Change loop index type to size_t