idoutils: fix flappinghistory attribute: s/reason/reason_type/