Get the mode of the index entry.
The returned mode contains the modes from stage 1, 2 and 3.
a IndexEntryResolveUndo.
the stage (0, 1 or 2).
the mode.