add check_odict_consistency utility