io: made iodevices index size_t for easier comparison with .size() methods