Can I create a "structure" type of variable?

If you are happy to use Execute JavaScript actions, you can use Keyboard Maestro variables which are JSON strings.

You can then use JavaScript's built-in JSON.parse and JSON.stringify functions to decode and encode clusters of key-value pairs: