This updates the given map-like object so that key is associated with value.
Note: The standard Map.prototype.set method returns the map being updated — but the Tree.set builtin does not return anything. This is to facilitate its use with the ori CLI, where returning the map would cause the entire map to be dumped to the console.