object.rasterize with ids now does what the same objects selected do:
an object listed with a group or layer that holds it is left out and the
group is rasterized, as edit::roots_of leaves it out of a selection.
Document.rasterize still throws an error for such a list before it runs
the command.