Some hacking on utility functions for module-walk.