Allow conversion of Dependencies to Array

This is needed for the intersection code in `brew deps` to work right,
but can hopefully be refactored away somehow eventually.