Rewrite map generation to produce unique keys
Replace the old generate-then-deduplicate approach with a stateful map builder that generates unique keys directly. This handles occurrence indicators (optional, zero-or-more, one-or-more, bounded) inline during map construction, retrying key generation on collisions instead of silently dropping duplicate entries. Required nodes are sorted first to prioritize generating mandatory entries.