Got this request from @Hjalti Hjálmarsson (hjalti).
It already works for objects.
Looks like this request is directly contrary to rB0fcfe8993e63d.
Commenting the code below out, makes it work; at least in my simple tests.
I don't really understand the implications of that change yet.
Note: I didn't add anyone as a reviewer, because we should clarify
the expected behavior first.