More cleanup of C API for rowRanks().