Cleaned up C API for rowRanks().