Handle nested enums properly by ensuring that parent message names are added only once.