Extend match_array danger rule with more use-cases
Context
!98354 (comment 1135338055) caused a broken master (documented in #378017 (closed)).
Goal
Ensure that this use-case is taken into account by the code we introduced in !64313 (merged) and !71261 (merged).