idxset: Add pa_idxset_filtered_copy function to copy existing idxset with a condition