Make comparison include comma before 1st alias

For comparisons, we now build a string that mirrors what’s seen in the
UI, instead of checking name and alias separately; close gh-10