Thanks for the detailed explanation, but I think I did not explain myself clearly enough. This is the stencil I want:
I can build it by stacking and grouping two rectangles, of course. But when the stencil is resized (say, vertically), the distance between the bottom side of the front rectangle and the bottom side of the back rectangle changes:
The above is the result I get when I drag the grouped object. Another way to express the same issue is that, even if the stencil is initially aligned to a grid (that is, both the front and the back rectangle are indivisdually aligned to the grid, and the grouped object is as well, of course), resizing the grouped object maintains the group aligned to the grid, but the individual component objects are displaced off the grid.
The behaviour I am looking for is rather this:
Currently, to get this, I have to resize the front rectangle and
the back rectangle separately, so that they remain aligned to the grid.
A (sharp) shadow would behave as I want, but a shadow does not have a fill and stroke color, so I cannot get the appearance of a white back rectangle with a dark border using a shadow.
I hope it is clear now. I can live with OG’s current behaviour, though slightly inconvenient: I wrote this post to know whether you gurus know a better way—perhaps, some setting that keeps the components of a grouped object aligned to the grid.