Fix types for read_data_helper

Fix some `int` types in Reader which should be `size_t`