Switch irg index to type size_t, making the API more consistent.