Replace __rank with __index_size; implement with std::tuple_size