Retain category information in AttributeInfo's of CategoricalComponents

Closes #484
Merge pull request #507 from ChrisBeaumont/484

Preserve CategoricalComponent information in custom viewers