Consider <type> when matching dependencies