factor out SEXP pairlist_shallow_copy(SEXP)
filter correctly propagates attributes. closes #221