support for scanning packages without recursion

I've needed this on more than one occasion, typically because I want to scan the submodules with a different set of scanner parameters (attributes) than when scanning the top-level package.