HF RL Explorer

Dict matching broken with Optional keys

Dict matching broken with Optional keys: a task in UltraTerminal (Harbor dataset). When using Match with dictionary specs containing Optional keys, the matching logic is completely broken. The precedence calculation and key handling has been corrupted, causing various failures.

The task

When using `Match` with dictionary specs containing `Optional` keys, the matching logic is completely broken. The precedence calculation and key handling has been corrupted, causing various failures.

Part of harness-hub/UltraTerminal.