Remove superfluous string casts
Handle array candidates in whatProvides