Minor fix to anyDuplicated
Closes bug #5437. `by=.` cols now don't lose attributes when used in `j`. Better tests added to catch further regressions. News updated.