Indexes and lengths now use size_t instead of random integer types