Fix inspect.getattr_static to work on modules (again).
Closes issue 11813.
3 files changed