Fix dependency equality
Remove unnecessary array allocations

These classes are never instantiated with arguments, so we can get rid
of the unnecessary array splatting.