Fix vector and C array type ranking problem