Limit group concatenated values in attributes to a distinct set.

This closes #590.