Improved the data inconsistencies report by adding global variables and
refining of items with different mode.

References #438.