core: Letting filter() accept lists