Copy unfiltered array before progressively filtering so that if the underlying array changes, there won;t be dupes and other unexpected behaviour