Cast ComponentIDs to strings.

Closes #439.