Add typedefs for local and global indices.