> I was expecting a smarter way instead of iteration… something like we have for the views, so a weakmap or something. Is this a temporary fix or not?

That would introduce circular dependencies that is prone to memory leaks. I do agree we should do something better than dummy iteration, but I think it's worth landing API first and then improving it.