Introduce new `maxdepth` keyword argument for setting a limit on nesting (#147)