Generalize _.compact

Generalize _.compact to work on any Collection, not just Arrays.