Accessing elements in Gtk container by name

In Gtk.jl, elements are accessed by an integer index. For example,

using Gtk
win = GtkWindow()
button = GtkButton("OK", name="ok_button")
push!(win, button)

This has two limitations in my opinion. First, integer indices convey no inherent meaning. Second, if an element is deleted from the container, some of the indices shift. This means that the association between 1 and button is not permanent. It would be convenient to access nested components with the dot syntax, e.g. win.ok_button or win.ok.label. It appears that this syntax is already used for some other purpose, which is unclear to me.

Is there a way to add this functionality (assuming it does not exist already in some form)?