Limited depth

This is a PR for #40.

It looks like it works, but I'm not sure if there needs to be a recalc of `Container#parentDepth` (see #92).